import request from '@/utils/request'



export function getUserList  (data) {

  return request({
    url: '/sys/user/list',
    method: 'GET',
    params: data
  })
}
export const deleteUser = (data) => {
  return request({
    url: '/sys/user/delete',
    method: 'POST',
    data
  })
}
export const addUser = (data) => {
  return request({
    url: '/sys/user/add',
    method: 'POST',
    data
  })
}
export const updateUser = (data) => {
  return request({
    url: '/sys/user/update',
    method: 'POST',
    data
  })
}

// 导出
export const exportUserExcel = (data) => {
  return request({
    url: '/sys/user/export',
    method: 'GET',
    params: data,
    responseType: 'blob',
  })
}
//获取领导人
export function getLeaderList  (data) {
  return request({
    url: '/sys/user/getLeaderList',
    method: 'GET',
    params: data
  })
}